import request from '@/utils/request'

export function downloadFile(fileName) {
  return request({
    url: '/api/admin/download',
    method: 'get',
    responseType: 'blob',
    params: { fileName },
    headers: { "no_need_to_transfer_to_the_backend": "downloadFile" },
  })
}

export function uploadFile(data) {
  return request({
    url: '/api/admin/upload',
    method: 'post',
    headers: { "Content-Type": "multipart/form-data" },
    data
  })
}